import React from 'react';
import {
  Route,
  Switch,
} from 'react-router-dom'

// mobile 模块
import MobileIndex from '../component/mobile_index';
import MobileNewsDetail from '../component/mobile_newsdetail';
import MobileUserCenter from '../component/mobile_usercenter';
import MobileListPage from '../component/mobile_list_page';


const MobileRouter = () => (
  <Switch>
    <Route exact path="/" component={MobileIndex} />
    <Route path="/detail/:newsId" component={MobileNewsDetail} />
    <Route path="/list/:newsName" component={MobileListPage} />
    <Route path="/user-center" component={MobileUserCenter} />
  </Switch>
)

export default MobileRouter
